import request from '@/utils/request'

export async function searchUsersPage(keyword, pageNum = 1) {
  const kw = (keyword || '').trim()
  const params = { pageNum }
  if (kw) params.keyword = kw
  return request.get('/userInfo/page', { params })
}
export async function getGradeList() {
  return request.get('/userInfo/getGrade')
}
export async function getDepList() {
  return request.get('/userInfo/getDep')
}